package org.spring.boot.mybatis.annotation.ws;

import org.spring.boot.mybatis.annotation.dao.TmptabMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @author: eastcom
 * @desc:
 **/
@RestController
@RequestMapping("/spring/boot/mybatis/annotation")
public class TmptabWs {

	@Autowired(required = false)
	private TmptabMapper tmptabMapper;

	@RequestMapping(value = "/list", method = RequestMethod.GET)
	public List<Map<String, Object>> queryForList(){
		return  tmptabMapper.queryForList();
	}
}
